package com.edu.tankgame;

/**
 * 炸弹
 */
public class Bomb {
    int x,y;//炸弹的坐标
    int life = 9;//生命周期
    boolean isLive = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }
    //减少生命值
    public void lifeDown(){
        if(life>0){
            life--;
        }else {
            isLive = false;
        }
    }
}
